package com.maiji.cloud.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.login.FoodMaterialCollection;

@Mapper
public interface FoodMaterialCollectionMapper extends BaseMapper<FoodMaterialCollection>{
	/**
	 * 获得用户收藏食材列表
	 * @param userId
	 * @param start
	 * @param limit
	 * @return
	 */
	List<FoodMaterialCollection> selectListByUserId(@Param("userId") String userId,@Param("start")Integer start,@Param("limit")Integer limit);
	/**
	 * 获得一种食材收藏数量
	 * @param foodMaterialId
	 * @return
	 */
	Integer getSumByfoodMaterialId(@Param("foodMaterialId")String foodMaterialId);
	/**
	  * 收藏
	 * @param uuId
	 * @param uuId2
	 * @return
	 */
	FoodMaterialCollection thumbsfoodMaterial(@Param("userId")String userId,@Param("foodMaterialId") String foodMaterialId);
}
